import { onLink } from '@/core/app'
import Appearance from "../../appearance"

export default {
	props: ['item'],
	components: { Appearance },
	methods: {
		// link对象点击事件
		onLink,
		// 跳转到商品详情页
		onTargetGoods(goodsId) {
			console.log('===onTargetGoods')
		  this.$navTo(`pages/goods/detail`, { goodsId })
		},
		// 跳转到搜索页面
		onTargetSearch() {
		  this.$navTo('pages/search/index')
		}
	},
}